
import PageTools from './PageTools'
import UploadExcel from './UploadExcel'
import ImageUpload from './ImageUpload'
import Print from 'vue-print-nb' // 也以/在mainjs注册
import checkPermission from '@/mixin/checkPermission'
import ScreenFull from './ScreenFull'
import ThemePicker from './ThemePicker'
import lang from './lang'
import tagsView from './TagsView'
export default {
  install(Vue) {
    Vue.component('PageTools', PageTools)
    Vue.component('UploadExcel', UploadExcel)
    Vue.component('ImageUpload', ImageUpload)
    Vue.component('ScreenFull', ScreenFull) // 全屏
    Vue.component('ThemePicker', ThemePicker) // 切换主题颜色
    Vue.component('lang', lang) // 切换主题颜色
    Vue.component('tagsView', tagsView) // 多页签
    Vue.use(Print) // 会有一个v-print指令
    Vue.mixin(checkPermission) // 全局注入mixin
  }
}

// 为什么这样注册全局呢?
// 因为install被执行(默认)
// 引导mainjs中 Vue.use()
// Vue.use({
//   install(Vue) {
//     alert(111)
//   }
// })
